import request from '@/utils/request'

export default {
  getList(size, current, eduTeacherParam) {
    return request({
      url: `/college/teacher/${current}/${size}`,
      method: 'post',
      data: eduTeacherParam
    })
  },
  deleteTeacherById(id) {
    return request({
      url: `/college/teacher/${id}`,
      method: 'delete'
    })
  },
  addTeacher(eduTeacher) {
    return request({
      url: '/college/teacher',
      method: 'post',
      data: eduTeacher
    })
  },
  // 根据id查询讲师信息
  getTeacherById(id){
    return request({
      url:`/college/teacher/${id}`,
      method: 'get'
    })
  },
  //修改讲师信息
  updateTeacher(eduTeacher){
    return request({
      url:'/college/teacher/update',
      method: 'post',
      data: eduTeacher
    })
  },
}